/*******************************************************************************
 * Level Master 2000
 * Copyright (C) 2010 Christian Herzog
 * For more information see http://code.google.com/p/levelmaster2000/
 *
 * This file is licensed under the terms of the MIT license, see
 * http://www.opensource.org/licenses/mit-license.php for further information.
 ******************************************************************************/

#include "Entity.h"

Entity::Entity( QString name )
    : IPBObject( name ),
    name( name )
{
}

Entity::~Entity()
{
    foreach( Component* component, components )
    {
        delete component;
    }

    components.clear();
}

//Entity::Entity( QString name, QList<Component*> components )
//    : name( name ),
//    components( components )
//{
//}
